<template>
  <h1>Home Vue</h1>
  <h2>{{ id }} | {{ name }}</h2>
</template>

<script setup>
import { ref } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();

const name = route.query.name;
const id = route.params.id;
</script>
